package cn.btks.resultintegration.rule.service.impl;

import cn.btks.resultintegration.rule.pojo.IndustrialPark;
import cn.btks.resultintegration.rule.repository.IndustrialParkRepository;
import cn.btks.resultintegration.rule.service.IndustrialParkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author lijun
 * @Date 2021/2/19 10:48
 */
@Service
public class IndustrialParkServiceImpl implements IndustrialParkService {

    @Autowired
    IndustrialParkRepository industrialParkRepository;

    @Override
    public List<IndustrialPark> findAllIndustrialPark() {
        return industrialParkRepository.findAll();
    }

    @Override
    public List<IndustrialPark> findAllByIndustryCode(Long industryCode) {
        return industrialParkRepository.findAllByIndustryCode(industryCode);
    }

    @Override
    public List<Map<String, Object>> findAllIndustryByGkdybh(String ysgkdybh) {
        return industrialParkRepository.findAllIndustryByGkdybh(ysgkdybh);
    }
}
